package com.zuoban.controller;

import com.zuoban.common.Result;
import com.zuoban.dto.SysLogQuery;
import com.zuoban.service.SysLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: zuoban-boot
 * @BelongsPackage: com.zuoban.controller
 * @Author: zxy
 * @CreateTime: 2022-10-10  14:21
 * @Description: ...
 */
@Api(tags = "日志管理")
@RestController
@RequestMapping("/log")
@RequiredArgsConstructor
public class LogController {

    private final SysLogService sysLogService;

    @ApiOperation("日志列表")
    @PostMapping("/list")
    public Result listLog(@RequestBody SysLogQuery sysLogQuery){
        return sysLogService.listLog(sysLogQuery);
    }

}
